package com.ice.base.ThreadPool;

import com.ice.base.model.SysLoginModel;
import com.ice.body.hardware.model.DeviceFace;
import com.ice.body.hardware.service.FaceToRoomService;


public class FaceToRoomRunAble implements Runnable {

    private int flag;

    private SysLoginModel userModel;

    private DeviceFace faceModel;

    private FaceToRoomService faceToRoomService;

    public FaceToRoomRunAble(FaceToRoomService faceToRoomService, int flag, SysLoginModel userModel, DeviceFace faceModel){
        this.flag = flag;
        this.userModel = userModel;
        this.faceModel = faceModel;
        this.faceToRoomService = faceToRoomService;
    }

    @Override
    public void run(){
        try{
            faceToRoomService.executeSingle(flag,userModel,faceModel);
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
